from src.model import db
from src.utils.model import BaseModel


class UserModel(BaseModel):
    __tablename__ = 'user'

    uid = db.Column("u_id", db.Integer, nullable=True, primary_key=True)  # 设置为主键，默认自增
    username = db.Column("user_name", db.String(50), nullable=True)
    password = db.Column(db.String(30), nullable=True)
    gender = db.Column(db.Boolean, nullable=True)
    image = db.Column(db.String(300), nullable=True)
